package com.example.administrator.yuejian_15.model;


import com.example.administrator.yuejian_15.bean.PxOrderBean;
import com.example.administrator.yuejian_15.iface.GetPxOrderIface;
import com.example.administrator.yuejian_15.listener.ListListener;
import com.example.administrator.yuejian_15.service.AllService;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;

public class GetPxOrderModel extends RetrofitBaseModel implements GetPxOrderIface<PxOrderBean> {

    private AllService allService;
    private Retrofit retrofit;
    public GetPxOrderModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void getPxOrder(String uid, ListListener<PxOrderBean> listListener) {
        Call<List<PxOrderBean>> call = allService.getPxOrder(uid);
        callenqueueList(call,listListener);
    }
}
